﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Forum.Common.Messages
{
    [Serializable]
    public class Connect : Message
    {
        public string username {get; set;}
        public string password {get; set;}

        /*
         * connect as a guest
         */
        public Connect() 
        {
            this.username = "default";
        }
        /*
         * connect as a registered user
         */
        public Connect(string username,string password)
        {
            this.username = username;
            this.password = password;
        }

        public override string GetType()
        {
            return "Connect";
        }
    }
}
